bitkeeper revision 1.1236.1.211 (42517e1deriuSgF4H6HZQT3-ochrAA)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 4 Apr 2005 17:49:17 +0000 (17:49 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 4 Apr 2005 17:49:17 +0000 (17:49 +0000)
Remove arch_alloc_domain_struct/arch_free_domain_struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/ia64/domain.c
xen/arch/x86/domain.c
xen/common/schedule.c
xen/include/xen/domain.h

index a8f40b569edfc712037b0dec82898d09d521d946..df5d17c66691521411cb46c0205510de6f2c96ce 100644 (file)
@@ -139,16 +139,6 @@ void startup_cpu_idle_loop(void)
        continue_cpu_idle_loop();
 }
 
-struct domain *arch_alloc_domain_struct(void)
-{
-       return xmalloc(struct domain);
-}
-
-void arch_free_domain_struct(struct domain *d)
-{
-       xfree(d);
-}
-
 struct exec_domain *arch_alloc_exec_domain_struct(void)
 {
        /* Per-vp stack is used here. So we need keep exec_domain
index a62f9ab1315a44769b2d720d9912b23afeef58e1..8fe3d4b0e77a3dc9e6a1e2e07c809dd39316d225 100644 (file)
@@ -192,16 +192,6 @@ void dump_pageframe_info(struct domain *d)
            page->u.inuse.type_info);
 }
 
-struct domain *arch_alloc_domain_struct(void)
-{
-    return xmalloc(struct domain);
-}
-
-void arch_free_domain_struct(struct domain *d)
-{
-    xfree(d);
-}
-
 struct exec_domain *arch_alloc_exec_domain_struct(void)
 {
     return xmalloc(struct exec_domain);
index ac4da68a792461c76378b7530b44104a04ca93a2..2d6c6bc0ab9606e28b602b1fee2386c3a50d73fe 100644 (file)
@@ -94,7 +94,7 @@ void free_domain_struct(struct domain *d)
         if ( d->exec_domain[i] )
             arch_free_exec_domain_struct(d->exec_domain[i]);
 
-    arch_free_domain_struct(d);
+    xfree(d);
 }
 
 struct exec_domain *alloc_exec_domain_struct(struct domain *d,
@@ -147,7 +147,7 @@ struct domain *alloc_domain_struct(void)
 {
     struct domain *d;
 
-    if ( (d = arch_alloc_domain_struct()) == NULL )
+    if ( (d = xmalloc(struct domain)) == NULL )
         return NULL;
     
     memset(d, 0, sizeof(*d));
@@ -158,7 +158,7 @@ struct domain *alloc_domain_struct(void)
     return d;
 
  out:
-    arch_free_domain_struct(d);
+    xfree(d);
     return NULL;
 }
 
index a16820bc355750211c532ace38b427d0220a58ab..b3799f10a3a33ae894403d1593758b6a284aa67c 100644 (file)
@@ -6,10 +6,6 @@
  * Arch-specifics.
  */
 
-extern struct domain *arch_alloc_domain_struct(void);
-
-extern void arch_free_domain_struct(struct domain *d);
-
 struct exec_domain *arch_alloc_exec_domain_struct(void);
 
 extern void arch_free_exec_domain_struct(struct exec_domain *ed);